<template>
  <div id="app">
    <el-form label-width="100px">
      <el-form-item label="名称">
        {{user.uname}}
      </el-form-item>
      <el-form-item label="身份证号">
        {{user.idNo}}
      </el-form-item>

      <el-form-item label="性别">
        {{user.gender}}
      </el-form-item>

      <router-link :to="'/house/MyHouse?uid='+user.uid" ><el-button size="mini">查看房产</el-button></router-link>
      <router-link :to="'/park/MyPark?uid='+user.uid"><el-button size="mini">查看停车位</el-button></router-link>
    </el-form>
  </div>
</template>

<script>
  export default {
    data(){
      return {
        user: {},
        uid:sessionStorage.getItem("uid"),
      }
    },
    created() {
      this.axios.get("/user/selectOne/"+this.uid).then((resp)=>{
        console.info(resp.data);
        this.user=resp.data;
      });
    }
  }
</script>


<style scoped>

</style>
